function* a() {
  let id = 1;
  yield id++;
}

let b = a();

console.log(b.next());
